<fieldset class="layui-elem-field layui-field-title">
  <legend>相册上传</legend>
  <div class="layui-field-box">
    <div class="ul-upload-photo-list">
      <div class="ul-upload-photo-item" >
        <div class="ul-upload-photo-delete layui-icon layui-icon-delete">
        </div>
        <div class="ul-upload-photo-main" style="background-image: url('/static/images/view.jpg');">

        </div>
      </div>
      <div class="ul-upload-photo-item ul-upload-photo-button">

      </div>
    </div>
  </div>
</fieldset>

<script>
  $('.ul-upload-photo-delete').click(function(){
    console.log(1111);
  })
  $('.ul-upload-photo-main').click(function(){
    console.log(2222);
  })
</script>